package com.dlry.db;

import java.util.List;

import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import com.dlry.entity.DlTravelRequest;

public interface TravelRequestRepository extends JpaRepository<DlTravelRequest, Long> {

	Page<DlTravelRequest> findAll(Pageable arg0);

	<S extends DlTravelRequest> long count(Example<S> arg0);

	<S extends DlTravelRequest> boolean exists(Example<S> arg0);

	<S extends DlTravelRequest> Page<S> findAll(Example<S> arg0, Pageable arg1);

	<S extends DlTravelRequest> S findOne(Example<S> arg0);

	long count();

	void delete(DlTravelRequest arg0);

	void delete(Iterable<? extends DlTravelRequest> arg0);

	void delete(Long arg0);

	void deleteAll();

	boolean exists(Long arg0);

	DlTravelRequest findOne(Long arg0);

	<S extends DlTravelRequest> S save(S arg0);

	List<DlTravelRequest> findAll();

	List<DlTravelRequest> findAll(Sort sort);

	List<DlTravelRequest> findAll(Iterable<Long> ids);

	<S extends DlTravelRequest> List<S> save(Iterable<S> entities);

	void flush();

	<S extends DlTravelRequest> S saveAndFlush(S entity);

	<S extends DlTravelRequest> List<S> findAll(Example<S> example);

	<S extends DlTravelRequest> List<S> findAll(Example<S> example, Sort sort);

}
